﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DiagramDesigner.Common.Constants;
using DiagramDesigner.Module.StatusBar.Views;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.ServiceLocation;

namespace DiagramDesigner.Module.StatusBar
{
    [ModuleExport(typeof(StatusBarModule))]
    public class StatusBarModule : IModule
    {
        public void Initialize()
        {
            IRegionManager regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
            regionManager.Regions[RegionName.StatusBarRegion].Add(new StatusBarView());
        }
    }
}
